import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 会员收货地址列表分页查询
export const findMemberAddressListPage = query => {
    return request({
        url: baseRequest_url+'/admin/memberAddress/findMemberAddressListPage',
        method: 'get',
		params: query,
    });
};
// 会员收货地址列表查询
export const findMemberAddressList = query => {
    return request({
        url: baseRequest_url+'/admin/memberAddress/findMemberAddressList',
        method: 'get',
		params: query,
    });
};
// 会员收货地址明细查询
export const findMemberAddressInfoById = query => {
    return request({
        url: baseRequest_url+'/admin/memberAddress/findMemberAddressInfoById/'+query,
        method: 'get',
    });
};
// 添加会员收货地址
export const addMemberAddress = data => {
    return request({
        url: baseRequest_url+'/admin/memberAddress/saveMemberAddress',
        method: 'post',
		data: data,
    });
};
// 编辑会员收货地址
export const saveMemberAddress = data => {
    return request({
        url: baseRequest_url+'/admin/memberAddress/saveMemberAddress',
        method: 'put',
		data: data,
    });
};
// 删除会员收货地址
export const deleteMemberAddressById = data => {
    return request({
        url: baseRequest_url+'/admin/memberAddress/deleteMemberAddressById/'+data,
        method: 'delete',
    });
};
// 批量删除会员收货地址
export const deleteMemberAddress = data => {
    return request({
        url: baseRequest_url+'/admin/memberAddress/deleteMemberAddress',
        method: 'delete',
		data: data,
    });
};
// 编辑会员默认收件地址
export const modifyDefaultAddress = data => {
    return request({
        url: baseRequest_url+'/admin/memberAddress/modifyDefaultAddress',
        method: 'put',
		params: data,
    });
};
